<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>Test Case for Issue #1862</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Issue #1862</h1>

<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=1862">Issue #1862</a>
- <span class="h3">Enhancement :: create xml tab in request item of net tab</span>.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Open Firebug and enable the Net panel</li>
<li>Click the button below</li>
<li>Expand the request and verify that XML tab is available and showing a xml source.</li>
</ol>

<button id="testButton" onclick="getXMLResponse()">Get XML from the server</button>
<script type="text/javascript">
function getXMLResponse(callback)
{
    var request = new XMLHttpRequest();
    request.open("GET", "issue1862.php", true);

    request.onreadystatechange = function()
    {
        if (request.readyState == 4 && request.status == 200)
        {
            if (callback) {
                setTimeout(function() {
                    callback(request);
                }, 300);
            }
        }
    }

    request.send(null);
}
</script>
</body>
</html>
